<template>
  <div>
    <div style="width:100px">
      <div class="k-card">
        <div class="k-card-thumb">
          <div class="k-card-thumb-inner">

          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  import {
    pagination,
    search,
    home
  } from 'fac/mixin.js';
  export default {
    name: 'newest-upload',
    mixins: [pagination, search, home],
    beforeRouteUpdate(to, from, next) {
      //当搜索字符串变化时,路由发生改变,重新请求数据
      console.log(to);
      console.log(this.search);
      console.log(this.query);
      // this.fetchData()
      next();
    },
    computed: {
      // ...mapState(NS_SEARCH, ['search']),
      // ...mapState(NS_HOME, ['query'])
    },
    mounted() {
      this.isNotIndexHomePage && this.renderPagination({
        total: 300,
        currentPage: 6
      });
    },
  }

</script>
